Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RenderingDevice: Fix uncapped mipmap sizes causing div-by-zero #96758

Merged

Conversation

RandomShaper
Copy link
Member

In #94069 I failed to realize some lower bound was still needed. Otherwise mip sizes could become <= 0.

Fixes #96352.

@RandomShaper RandomShaper added bug topic:rendering crash cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release labels Sep 9, 2024
@RandomShaper RandomShaper added this to the 4.4 milestone Sep 9, 2024
@RandomShaper RandomShaper requested a review from a team as a code owner September 9, 2024 15:12
@akien-mga akien-mga merged commit 27552a2 into godotengine:master Sep 9, 2024
20 checks passed
@akien-mga
Copy link
Member

Thanks!

@RandomShaper RandomShaper deleted the fix_the_shift_must_go_on branch September 9, 2024 16:19
@akien-mga
Copy link
Member

Cherry-picked for 4.3.1.

@akien-mga akien-mga removed the cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release label Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

D3D12: Crash when rendering a non-square texture with mipmaps
3 participants